package dao

import (
	"SelectCourse/types"
	"github.com/jinzhu/gorm"
)

/**
 * @Description
 * @Author Roy
 * @Date 2022/2/7 11:17
 **/
func AddMember(member types.CreateMemberRequest) *gorm.DB{
	var member1 types.TMember
	member1.Nickname = member.Nickname
	member1.Username = member.Username
	member1.Password = member.Password
	member1.UserType = 2
	result := Db.Create(&member1)
	return result
}